#coding=utf-8

from uliweb.orm import *
from uliweb.utils.common import get_var
import datetime

class Notice(Model):
    __verbose_name__ = u'通知'
    __dispatch_enabled__ = False
    
    table_id = Reference('tables', verbose_name="操作表", required=True)
    memo = Field(TEXT, verbose_name='内容')
    modify_flag = Field(CHAR, max_length=1, verbose_name="修改标志", choices=get_var('PARA/AUDIT_MODIFY_FLAG'))    
    obj_id = Field(int, verbose_name="ID", required=True)
    sender = Reference('user', verbose_name='创建人')
    create_date = Field(datetime.datetime, verbose_name='创建时间', auto_now=True, auto_now_add=True)
    
